<template>
    <view class="big-box">
        <div v-for="(item,index) in detailData.enterpriseCard" :key="index">
            <div class="cardName">{{item.cardName}}</div>
            <div class="cardBox" v-for="(card,indexcard) in item.cardFile.split(',')" :key="indexcard">
                <image class="card" :src='card' mode='widthFix'></image>
            </div>
        </div>
    </view>
</template>
<!-- 用户名，身份证，手机号，密码，校验码，短信验证 -->
<script>
// import Validate from '../../utils/tools/validate.js'

export default {
    data() {
        return {
            detailData: {}
        }
    },
    onReady() {

    },
    onLoad(opt) {
        console.log(opt
        );
        this.systemInfoCodeM(opt.code)
    },
    methods: {

        // 获取图片验证码
        systemInfoCodeM(value) {
            this.$asynApi.systemInfoCode(value).then(val => {
                if (val.code == 200) {
                    this.detailData = val.data
                    uni.setNavigationBarTitle({
                        title: this.detailData.enterpriseName
                    });
                }
                // this.captchaSrc = val.data
                else {
                    uni.showToast({
                        title: '二维码无效',
                        icon: 'none'
                    })
                }
            })
        },

    }
}
</script>

<style scoped lang="less">
.cardName {
    padding: 40rpx;
    text-align: center;
    font-size: 40rpx;
}
.cardBox {
    padding: 0rpx 40rpx 40rpx 40rpx;
}
.card {
    // padding: 20rpx;
    margin-bottom: 20rpx;
    width: 100% !important;
    // height: auto !important;
}
</style>